package kr.saeildamil.androidstudy.ch19;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch19Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch19_main);
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		switch(v.getId()){
		case R.id.ch19_main_btn01:
			intent.setClass(this, TreadTest.class);
			break;
		case R.id.ch19_main_btn02:
			intent.setClass(this, RunableTest.class);
			break;
		case R.id.ch19_main_btn03:
			intent.setClass(this, HandlerTest.class);
			break;
		case R.id.ch19_main_btn04:
			intent.setClass(this, PostTest.class);
			break;
		case R.id.ch19_main_btn05:
			intent.setClass(this, RunOnUiThreadTest.class);
			break;
		case R.id.ch19_main_btn06:
			intent.setClass(this, HandlerMessageTest.class);
			break;
		case R.id.ch19_main_btn07:
			intent.setClass(this, HandlerMessageObtain.class);
			break;
		case R.id.ch19_main_btn08:
			intent.setClass(this, LooperTest.class);
			break;
		case R.id.ch19_main_btn09:
			intent.setClass(this, JobScheduleTest.class);
			break;
		case R.id.ch19_main_btn10:
			intent.setClass(this, JobSchedulePost.class);
			break;
		case R.id.ch19_main_btn11:
			intent.setClass(this, LongTime4.class);
			break;
		case R.id.ch19_main_btn12:
			intent.setClass(this, AsyncTaskBasic.class);
			break;
		case R.id.ch19_main_btn13:
			intent.setClass(this, BackWork.class);
			break;
		}
		
		
		startActivity(intent);
	}
}
